<template>
  <div>
    <el-upload
    class="upload-demo"
    action="/api/file/upload"
  
    :on-success="handleExceed"
  >
    <el-button type="primary">Click to upload</el-button>
    <template #tip>
      <div class="el-upload__tip">
        jpg/png files with a size less than 500KB.
      </div>
    </template>
  </el-upload>
  <!-- <img src="/api/file/getImage/temp/wpZhg5BkSyafDzU暂无数据.png" alt="" /> -->

  </div>
</template>
<script setup>
const handleExceed=(e)=>{
  console.log(e)

}
</script>